package io.github.talelin.latticy.service.oms;

import io.github.talelin.latticy.dto.oms.inbound_order.InboundPackagesDTO;
import io.github.talelin.latticy.dto.oms.inbound_order.ReceivingPackageDTO;
import io.github.talelin.latticy.model.oms.InboundPackagesDO;
import com.baomidou.mybatisplus.extension.service.IService;
import io.github.talelin.latticy.vo.ReceivingRecordVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author generator@TaleLin
 * @since 2022-05-18
 */
public interface InboundPackagesService extends IService<InboundPackagesDO> {

    boolean saveInboundPackageDO(InboundPackagesDTO inboundPackagesDTO);

    void deletePackages(List<String> inboundOrderNoList);

    List<InboundPackagesDO> getPackagesByOrderNoList(List<String> inboundOrderNoList);

    Map<String, List<InboundPackagesDO>> getPackagesMapByOrderNoList(List<String> inboundOrderNoList);

    boolean batchUpdateReceiveQuantityByIds(List<ReceivingPackageDTO> packages);

    boolean updateReceiveQuantityByPackageNo(ReceivingRecordVO receivingRecordVO);
}
